package com.resataurant.Entity;

public class Dish {
    private String w_Id;

    public String getDishId() {
        return w_Id;
    }

    public void setDishId(String dishId) {
        this.w_Id = dishId;
    }

    public String getDishName() {
        return w_Name;
    }

    public void setDishName(String dishName) {
        this.w_Name = dishName;
    }

    public String getDishContent() {
        return w_Content;
    }

    public void setDishContent(String dishContent) {
        this.w_Content = dishContent;
    }

    public String getDishPrice() {
        return w_Price;
    }

    public void setDishPrice(String  dishPrice) {
        this.w_Price = dishPrice;
    }

    public String getDishImage() {
        return w_path;
    }

    public void setDishImage(String dishImage) {
        this.w_path = dishImage;
    }

    public String getUserId() {
        return w_user_id;
    }

    public void setUserId(String userId) {
        this.w_user_id = userId;
    }

    public Integer getW_num() {
        return w_num;
    }

    public void setW_num(Integer w_num) {
        this.w_num++;
    }

    public Dish returnDish(){
        setW_num(getW_num());
        return this;
    }

    public Dish(String dishId, String dishName, String dishContent, String dishPrice, String dishImage,String userId) {
        this.w_Id = dishId;
        this.w_Name = dishName;
        this.w_Content = dishContent;
        this.w_Price = dishPrice;
        this.w_path = dishImage;
        this.w_user_id = userId;
    }

    public Dish(){

    }

    private String w_Name;
    private String w_Content;
    private String w_Price;
    private String w_path;
    private String w_user_id;
    private Integer w_num=0;
}
